<?php
namespace App\Services\Sp;

use App\Services\Sp\Sp\SpLogic;


class Sp
{
    // 添加sp
    public function addSp($data)
    {
        ValidateSp::checkValidate($data, [
            'sp_type',
            'full_name',
            'simple_name',
            'card_type',
            'card',
            'phone_name',
            'phone',
            'weixin',
            'weibo',
            'email',
            'url',
            'memory_des',
            'check_cycle',
            'fix_choose'
        ]);
        return (new SpLogic())->addSp($data);
    }

    //sp列表
    public function spList($data){
        return (new SpLogic())->spList($data);
    }

    //sp详情
    public function spDetail($data){
        return (new SpLogic())->spDetail($data);
    }

    //修改sp
    public function updateSp($data){
        return (new SpLogic())->updateSp($data);
    }

    //终止/恢复协议
    public function termination($data)
    {
        return (new SpLogic())->termination($data);
    }

}
